﻿/******************************************************************************
* File description: BoxExpFinish.qml
* Function: 实验完成弹窗
* Current Version: 1.0.0
* Author: JNN
* Date: 2025-07-01
*  -----
*  Copyright by 博坤生物 .
 *****************************************************************************/
import QtQuick 2.0
import "../components"

CustomPopupBox {
    title: "实验完成"
    height: 270*dp;  width: 400*dp

    contentItem: Item{
        Image {
            id: name
            anchors.horizontalCenter: parent.horizontalCenter
            y: 20*dp
            height: 50*dp
            width: 50*dp
            source: "qrc:/picture/info.png"
        }
        Text{
            y: 90*dp
            text: "实验已完成，请复位设备！"
            font.pixelSize: config.fontsize
            anchors.horizontalCenter: parent.horizontalCenter
        }
        Row{
            y: 150*dp
            spacing: 20*dp
            anchors.horizontalCenter: parent.horizontalCenter
            CustomButton{
                title: "返回主页"
                defaultMode2: true
                onClicked: {
                    resetExperimentInfo()
                    if(gAppModule === 2){       // 模块屏蔽
                        gPageIdx = 4
                    }else{
                        gPageIdx = 0
                    }
                    close()
                }
            }CustomButton{
                title: "打印报告"
                defaultMode1: true
                onClicked: {
                    box_printer.close()
                    box_printer.show()
                }
            }
        }
    }
}
